package cn.botter.subject.domain.convert;

import cn.botter.subject.domain.entity.SubjectLabelBO;
import cn.botter.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectLabelConverter {

    SubjectLabelConverter INSTANCE = Mappers.getMapper(SubjectLabelConverter.class);

    /**
     * 自动帮我们转
     * @param subjectLabelBO
     * @return
     */
    SubjectLabel convertBoToLabel(SubjectLabelBO subjectLabelBO);


    List<SubjectLabelBO> convertBoToLabelList(List<SubjectLabel> LabelList);

    List<SubjectLabelBO> convertLabelToBoList(List<SubjectLabel> result);
}
